﻿using System.Xml.Serialization;

namespace Yun.Site
{
    public class VideoInfo
    {
        /// <summary>
        /// 视频ID
        /// </summary>
        [XmlElement("video_id")]
        public string VideoId;

        /// <summary>
        /// 标题
        /// </summary>
        [XmlElement("title")]
        public string Title;

        /// <summary>
        /// 标签
        /// </summary>
        [XmlElement("tags")]
        public string Tags;

        /// <summary>
        /// 状态
        /// </summary>
        [XmlElement("status")]
        public string Status;

        /// <summary>
        /// 尺寸
        /// </summary>
        [XmlElement("size")]
        public long? Size;

        /// <summary>
        /// 持续时间
        /// </summary>
        [XmlElement("duration")]
        public float? Duration;

        /// <summary>
        /// 描述
        /// </summary>
        [XmlElement("description")]
        public string Description;

        /// <summary>
        /// 创建时间
        /// </summary>
        [XmlElement("create_time")]
        public string CreateTime;

        /// <summary>
        /// 修改时间
        /// </summary>
        [XmlElement("modify_time")]
        public string ModifyTime;

        [XmlElement("cover_url")]
        public string CoverUrl;

        /// <summary>
        /// 分类ID
        /// </summary>
        [XmlElement("cate_id")]
        public int? CateId;

        /// <summary>
        /// 分类名字
        /// </summary>
        [XmlElement("cate_name")]
        public string CateName;

        /// <summary>
        /// 快照,多个用英文逗号分隔
        /// </summary>
        [XmlElement("snapshots")]
        public string Snapshots;
    }
}
